package ooday02;

//超类
public class person {
    String name;
    int age;
    String address;
    person(String name,int age,String address){
        this.name=name;
        this.age=age;
        this.address=address;
    }

    void eat() {
        System.out.println(name + "正在吃饭");
    }

    void sleep() {
        System.out.println(name + "正在睡觉");
    }

    void sayhi() {
        System.out.println("大家好，我叫" + name + ",今年" + age + "岁了，我住在" + address);
    }
}
